<template>
    <el-button type="primary" @click="on">主要按钮</el-button>
</template>

<script>
    export default {
        name: "Movie",
        props: ["movieId"],
        mounted() {
            this.init()
        },
        methods:{
            init(){
                console.log("子"+this.movieId)
                // console.log("store"+this.$store.state.movieId2)
            },
            on(){
                console.log(this.movieId)
            }
        }
    }
</script>

<style scoped>

</style>